package com.dgut.dao;

import com.dgut.domain.IRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("iRoleRepository")
@Mapper
public interface IRoleRepository {

    @Select("select * from pt_role where role_uuid = (select role_uuid from pt_role_user where user_uuid = #{id})")
    IRole findByUserID(String id);

}
